<?php

$condition = " a.uniacid=:uniacid ";
$params[':uniacid'] = $_W['account']['acid'];


$total = pdo_fetchcolumn("SELECT count(a.id) FROM " .tablename($this->table_member). " a LEFT JOIN " .tablename($this->table_mc_members). " b ON a.uid=b.uid WHERE {$condition}", $params);

$total_member = pdo_fetchcolumn("SELECT total_member FROM " . tablename($this->table_setting)  . " WHERE uniacid=:uniacid", $params);

$total = $total + $total_member;

$level = pdo_fetch("SELECT * FROM " .tablename($this->table_vip_level). " WHERE uniacid=:uniacid AND id=:id", array(':uniacid'=>$_W['account']['acid'],':id'=>3));
$price = intval($level['level_price']);
include $this->template('membership');


?>